﻿using RabbitMQ.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WAU.Models.Framework;

namespace WAU.Utilities
{
    public class RabbitMQService
    {
        /// <summary>
        /// ConnectionFactory
        /// </summary>
        public static ConnectionFactory ConnectionFactory = new ConnectionFactory()
        {
            HostName = GlobalConfig.Setting.AMQP.HostName,
            Port = GlobalConfig.Setting.AMQP.Port,
            UserName = GlobalConfig.Setting.AMQP.UserName,
            Password = GlobalConfig.Setting.AMQP.Password,
            VirtualHost = GlobalConfig.Setting.AMQP.VirtualHost
        };
    }
}
